<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<script>
  const xhttp = new XMLHttpRequest();
  // 发送请求
  xhttp.open("GET", "http://localhost:8077/register.jsp");
  xhttp.send();
  xhttp.onreadystatechange = function() {
    if (this.readyState == 4 && this.status == 200) {
              // this.responseText;
    }
  };
</script>
</body>
</html>